package com.pw.lit.service.impl;

import com.pw.lit.bean.LearnData;
import com.pw.lit.bean.LearnDataExample;
import com.pw.lit.mapper.LearnDataMapper;
import com.pw.lit.service.LearnDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("learnDataService")
public class LearnDataServiceImpl implements LearnDataService {

    @Autowired
    private LearnDataMapper learnDataMapper;
    @Override
    public int countByExample(LearnDataExample example) {
        return learnDataMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(LearnDataExample example) {
        return learnDataMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer ldid) {
        return learnDataMapper.deleteByPrimaryKey(ldid);
    }

    @Override
    public int insert(LearnData record) {
        return learnDataMapper.insert(record);
    }

    @Override
    public int insertSelective(LearnData record) {
        return learnDataMapper.insertSelective(record);
    }

    @Override
    public List<LearnData> selectByExample(LearnDataExample example) {
        return learnDataMapper.selectByExample(example);
    }

    @Override
    public LearnData selectByPrimaryKey(Integer ldid) {
        return learnDataMapper.selectByPrimaryKey(ldid);
    }

    @Override
    public int updateByExampleSelective(LearnData record, LearnDataExample example) {
        return learnDataMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(LearnData record, LearnDataExample example) {
        return learnDataMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(LearnData record) {
        return learnDataMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(LearnData record) {
        return learnDataMapper.updateByPrimaryKey(record);
    }
}